<?php

class ErrorController {
	public function IndexAction(&$req, &$resp) {
		$str = sprintf("something error controller name = %s,  methodname= %s ", get_class($this) , __FUNCTION__);
		$resp->header("Content-Type", "application/json");
		$ret = ["msg" => $str];
		$resp->end(json_encode($ret));
	}
}